package demo.virtuemart.productdisplay;

import org.testng.SkipException;
import org.testng.annotations.BeforeSuite;

import demo.virtuemart.Util.TestUtil;
import demo.virtuemart.base.TestBase;

public class TestSuiteBase extends TestBase {
	
	@BeforeSuite
	public void checkSuiteSkip() throws Throwable
	{
		initialize();
		 logs.debug("Initialized");
		 if(!TestUtil.isSuiteRunnable(xlsSuite, "Product Display Suite"))
		 {
			 logs.debug("Log Message---- Skipping the test case" +this.getClass().getSimpleName()+"as the run mode set to no");
				throw new SkipException("Skipping the test case" +this.getClass().getSimpleName()+"as the run mode set to no");
		 }
	}

}
